1. When you use a custom validator, the validation is performed

in the ServerValidate event handler for the validator

2. You can use a compare validator to perform all but one of the following validations. Which one is it?

Check for a specific data type
Compare the value of a control with the value of another control
Compare the value of a control with a constant value
Check the value is required (CORRECT)

3. You can use a range validator to

check that the value of a control falls within the range you specify when you define the validator
check that the value of a control falls within the range you specify as the program executes
specify the data type that should be used for the range comparisons

4. A --------------- validator is typically used to check whether the initial value of a control has changed.

Required field

5. If client-side scripts aren’t enabled by the user’s browser, you can check whether the validation specified by ALL the validators were successful on the server by using

the IsValid property of the page

6. If you want the same error message to be displayed in the validator and the validation summary control, you

set the ErrorMessage property to the message and don’t set the Text property

7. All but one of these statements about validation controls is true. Which one is false?

The data validation specified by a validator is done only if the validator is enabled
You can associate two or more validators with the same input control.
Data validation can always done on the server
Each validator is associated with a multiple input controls. (FALSE)

8. A custom validator is typically used when

the validation is based on the data in a database

9. Which of the following can be tested by a regular expression validator?

the format of a social security number (TRUE)
the format of a last name
the validity of a credit card number
the validity of a social security number

10. Which of the following is NOT a common validator property (based on the book)

IsPostback